
#include <QtGui/qapplication>
#include <QtGui/QFileDialog>

#include <vector>
#include <string>


std::string GetSrcPath()
{
	QString directory = QFileDialog::getExistingDirectory();
	return directory.toStdString();
}

std::string GetDestPath()
{
	QString directory = QFileDialog::getExistingDirectory();
	return directory.toStdString()+"\\initrd";
}

bool CheckExist(std::string)
{
	return false;
}

std::string MakeTmpDir() 
{
	QString tmppath = QDir::tempPath();
	return "";
}

std::string Compress(std::string cpiopath)
{
	std::string ofname = cpiopath+".imz";
	char ifname[1024];
	strcpy(ifname, cpiopath.c_str());
	FILE* of = fopen(ofname.c_str(), "wb");
//	treat_file222(ifname, fileno(of));
	//fclose(of);
	return ofname;
}

bool MoveToDest(std::string initrdpath, std::string destpath)
{
	return false;
}

#include "ui/dialog.h"

int main(int argc, char** argv, char** env)
{
//	AllocConsole();

	QApplication app(argc, argv);

	MyDialog dlg;
	dlg.show();

	return app.exec();

	//success!
	return 0;
}

